#include<iostream>
#include"server.hpp"
int main()
{
    server s;
    std::cout << "server启动" << std::endl;
    s.openfile();
    std::string name;
    while(true)
    {
        if(s.r_pipe(&name) > 0)
        {
            std::cout << "server读取到的数据:" << name << std::endl;
        }
        else
        {
            break;
        }
    }
    s.closefile();
    return 0;
}